package com.lanjiyin.cloud.question;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.lanjiyin.cloud.auth.client.EnableLanJiYinYeAuthClient;
import com.lanjiyin.cloud.cache.EnableLanJiYinYeCache;
import com.spring4all.swagger.EnableSwagger2Doc;

@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableFeignClients({"com.lanjiyin.cloud.auth.client.feign","com.lanjiyin.cloud.question.feign"})
@EnableScheduling
@EnableLanJiYinYeAuthClient
@EnableLanJiYinYeCache
@EnableTransactionManagement
@MapperScan("com.lanjiyin.cloud.question.mapper")
@EnableSwagger2Doc
public class QuestionBootstrap 
{
	public static void main(String[] args) {
        new SpringApplicationBuilder(QuestionBootstrap.class).run(args);    }
}
